<template>
  <div class="HeaderView">
    <i class="back iconfont">&#xe601;</i>
    <div class="search">
      <i class="iconfont search-icon">&#xe62f;</i>
      <input type="text">
    </div>
    <router-link class="city" to="/citylist2" tag="div">
      <span>{{this.$store.state.city}}</span><i class="iconfont xiala-icon">&#xe600;</i>
    </router-link>
  </div>
</template>

<script>
  export default {
    name: "HeaderView",
  }
</script>

<style scoped lang="less">
  .HeaderView {
    width: 100%;
    height: .88rem;
    display: flex;
    line-height: .88rem;
    align-items: center;
    background-color: #00bcd4;
    justify-content: space-between;
  }
  .back {
    color: #fff;
    font-size: .5rem;
  }
  .city {
    color: #fff;
    width: 1rem;
    height: 0.88rem;
    font-size: .32rem;
    position: relative;
  }
  .city .xiala-icon {
    font-size: .28rem;
  }
  .HeaderView .search{
    flex: 1;
    position: relative;
    .search-icon {
      position: absolute;
      left: .3rem;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  .search input {
    display: block;
    width: 95%;
    height: .6rem;
    margin: 0 auto;
    border: 0;
    box-sizing: border-box;
    border-radius: .08rem;
    padding-left: .6rem;
  }
</style>